<?php

use Illuminate\Support\Facades\Route;

Route::group(['namespace' => 'Pro\V1', 'prefix' => 'pro/v1', 'as' => 'api.pro.v1.'], function () {
    // 设备组
    Route::get('group/index', 'GroupsController@index')->name('group.index');

    // 设备
    Route::get('equipment/show', 'EquipmentsController@show')->name('equipment.show');

    // 挂件-环境监测器
    Route::get('env/show', 'EnvsController@show')->name('env.show');

    // 挂件-摄像头监控
    Route::get('monitor/show', 'MonitorsController@show')->name('monitor.show');
    Route::get('monitor/index', 'MonitorsController@index')->name('monitor.index');

    // 挂件-无线网络
    Route::get('wifi/show', 'WifisController@show')->name('wifi.show');
    Route::get('wifi/index', 'WifisController@index')->name('wifi.index');

    // 统计
    Route::get('statistics/count', 'StatisticsController@equipment')->name('statistics.count');
    Route::get('statistics/actual', 'StatisticsController@actual')->name('statistics.actual');
    Route::get('statistics/env', 'StatisticsController@env')->name('statistics.env');
    Route::get('statistics/wifi', 'StatisticsController@wifi')->name('statistics.wifi');
    Route::get('statistics/lamp', 'StatisticsController@lamp')->name('statistics.lamp');
    Route::get('statistics/energy', 'StatisticsController@energy')->name('statistics.energy');
    Route::get('statistics/electric', 'StatisticsController@electric')->name('statistics.electric');
    Route::get('statistics/throughput', 'StatisticsController@throughput')->name('statistics.throughput');

    // 事件
    Route::get('event/alert', 'EventsController@alert')->name('event.alert');
});
